<% if current_user %>
<p id="notice"><%= notice %></p>

<p>
  <b>Restaurant:</b>
  <%= @order.restaurant %>
</p>

<p>
  <b>Bounty:</b>
  <%= number_to_currency(@order.bounty) %>
</p>

<p>
  <b>Order cost:</b>
  <%= number_to_currency(@order.order_cost) %>
</p>

<p>
  <b>Order Destination:</b>
   <%= @order.order_destination %>
</p>

<p>
  <b>Content:</b>
  <%= @order.content %>
</p>

<p>
  <b>Feedback for Customer:</b>
  <%= @order.customer_feedback %>
</p>

<p>
  <b>Feedback for Driver:</b>
  <%= @order.driver_feedback %>
</p>

<% if @order.driver_id || !(@order.delivery_failed || @order.delivery_completed)  %>
<%= link_to 'Edit', edit_order_path(@order) %> |
<% end %>
<%= link_to 'Back', :back %> |
<%= link_to 'Home page', root_url %>
<% else %>
<p>Error: You are not currently logged in.</p>
<p>If you would like to place an order please <%= link_to "log in", log_in_path %>.<p>
<p>If you do not have an account, please <%= link_to "sign up", sign_up_path %><p>
<p>Or you can return to the <%= link_to "home page", root_url %>.<p>
<% end  %>
